﻿@model IEnumerable<TCM.Instructor>

@{
    ViewBag.Title = "Index";
}
@* 13-7-2013 Enas Comment *@
@*<h2>Instructors</h2>*@

@*<p>
    @Html.ActionLink("Create New", "Create")
</p>*@

<div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>
<br />
<div class="toolbar">
    @Html.ActionLink("Create New", "Create")
</div>
@* 13-7-2013 Enas add br, change class to grdTable as in course*@
<br />
@*<table class="DataGrid"> *@    
<table class="grdTable" style="width: 100%;" cellspacing="0">
 <thead>
<tr class="GridHeader">   
    <tr>
       @* <th>
            @Html.DisplayNameFor(model => model.InstructorID)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
       @* <th>
            @Html.DisplayNameFor(model => model.NameAr)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Email1)
        </th>      
        <th>
            @Html.DisplayNameFor(model => model.Mobile1)
        </th>
        
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
      @*  <th>
            @Html.DisplayNameFor(model => model.ADDRESSAR)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Phone)
        </th>            
        <th>
            @Html.DisplayNameFor(model => model.WorkingHours)
        </th>         
        <th></th>
    </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
        @*<td>
            @Html.DisplayFor(modelItem => item.InstructorID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
      @*  <td>
            @Html.DisplayFor(modelItem => item.NameAr)
        </td>*@
       
        <td>
            @Html.DisplayFor(modelItem => item.Email1)
        </td>       
        <td>
            @Html.DisplayFor(modelItem => item.Mobile1)
        </td>        
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
      @*  <td>
            @Html.DisplayFor(modelItem => item.ADDRESSAR)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
       
        <td>
            @Html.DisplayFor(modelItem => item.WorkingHours)
        </td>       
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.InstructorID}) |
            @*@Html.ActionLink("Details", "Details", new {  id=item.InstructorID }) *@
            @Html.ActionLink("Delete", "Delete", new { id = item.InstructorID })
        </td>
    </tr>
}
 </tbody>
</table>
